﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Marco.Master" AutoEventWireup="true" CodeBehind="busq_planetas.aspx.cs" Inherits="planet_express.busq_planetas" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">



<div>

<div class="contenedor_busqueda">

<div class="busqueda">
    
    <h3 class="Perfil">Elija el método de búsqueda</h3>


        <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
        onselectedindexchanged="visible_buscador">
            <asp:ListItem>Busqueda</asp:ListItem>
            <asp:ListItem>Listado Sistemas</asp:ListItem>
        </asp:RadioButtonList>




</div> 

    <asp:MultiView ID="Buscadores" runat="server">
        <asp:View ID="cadena" runat="server">
            <asp:TextBox ID="TextBox1" runat="server" OnClick="this.value=''">buscar...</asp:TextBox>
            <asp:Button ID="Button2" runat="server" Text="Buscar" 
                onclick="cadena_planets" />
        </asp:View>
        <asp:View ID="listado" runat="server">
            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                DataSourceID="SqlDataSource1" DataTextField="Nombre" 
                DataValueField="Nombre" onselectedindexchanged="lista_planets">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\PlanetExpressDB.mdf;Integrated Security=True;User Instance=True" 
                ProviderName="System.Data.SqlClient" 
                SelectCommand="SELECT [Nombre], [Id] FROM [SISTEMA]"></asp:SqlDataSource>
        </asp:View>
    </asp:MultiView>  
    

 

</div>

<div class="listado_result">

<asp:MultiView ID="listado_planetas" runat="server">

    <asp:View ID="listado_planetas_00" runat="server">

    <h2>Resultados</h2>
    <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
            GridLines="None" Width="500px" >

        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
 
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="nombre" 
                DataNavigateUrlFormatString="planeta_01.aspx?nombre={0}" 
                Text="Seleccionar" />
        </Columns>
 
        <EditRowStyle BackColor="#999999" />
        <EmptyDataTemplate>
            No hubo suerte en la busqueda. Inténtelo de nuevo.
        </EmptyDataTemplate>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>

    </asp:View>

    <asp:View ID="nada" runat="server"></asp:View>

</asp:MultiView>

</div>

</div>





</asp:Content>
